package rursu.view;

import rursu.business.MovieApplication;

public class SearchMovieFragment extends BaseMoviesFragment {

	private String query;	
	
	@Override
	protected void adapterInit() {
		if (adapter == null) {
			
			((MovieApplication) getActivity().getApplication()).getDataProviderManager().getSearchMovies(this, query);
			
		} else {
			
			listView.setAdapter(adapter);
		}
	}
	
	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
		
}
